package com.nerve.secondhandcar.domain;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.ko.core.domain.support.BaseEntity;

/**
 * 平台中的图片资源Domain
 * 
 * 图片跟上传者不关联，只保存上传者的昵称跟id
 * 
 * @author 集成显卡
 * @version 2014-10-10 10:56:05
 */
@SuppressWarnings("serial")
@Entity
@Table(name="picture")
public class Picture extends BaseEntity {
	
	private long appId;
	private String fileName;
	private String thumb;			//缩略图
	private String origin;			//原文件路径
	private String path;			//正常图片的路径，就是网站所用到的大图
	private String userName;		//
	private String userId;	
	private String postDate;
	private String category;
	private int sort;				//排序
	
	public Picture() {
		super();
	}

	public Picture(Long id){
		this();
		this.setId(id);
	}

	
	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

	public String getOrigin() {
		return origin;
	}

	public void setOrigin(String origin) {
		this.origin = origin;
	}

	public long getAppId() {
		return appId;
	}

	public void setAppId(long appId) {
		this.appId = appId;
	}

	public String getFileName() {
		return fileName;
	}

	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	public String getThumb() {
		return thumb;
	}

	public void setThumb(String thumb) {
		this.thumb = thumb;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getPostDate() {
		return postDate;
	}

	public void setPostDate(String postDate) {
		this.postDate = postDate;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}
}